-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port LinePaginator from all bots. #189
Conversation
✅ Deploy Preview for bot-core ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
e5678fc
to
553e6eb
Compare
cf3eb92
to
377d32a
Compare
This is because it's a component that can be reused by all bots.
568da3a
to
a0ced91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preview doesn't seem to be updating correctly, could you include some screenshots of what the docs look like for these new classes/features?
I can also build an alpha/beta version for this if it would be useful to test with on a bot.
a0ced91
to
e4c9b97
Compare
But I realized that I have only documented the class, not the methods themselves so I'll do that.
Yes that would be great, thanks. |
e4c9b97
to
bdc30b7
Compare
This will allow their reusability in all other bots
8d950e8
to
43b720a
Compare
43b720a
to
28001f7
Compare
6cda21d
to
aa021ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested via bot PR, LGTM
Oops, didn't mean to re-request your review wookie. Apologies. |
This is another step towards having one single reusable core component to our bots instead of duplicate definitions all across them.
Problem
Amongst others,
LinePaginator
is a class used by all of our bots, sobot-core
should be its home.The class has 2 main dependencies
Solution
Port it over to bot-core, and have all other bots import & use it.
The
message.reaction_check
util has been ported to bot-coreThe main problem for now remains with the usage of constants. To tacke this, the idea is to make a wrapper over this
LinePaginator
in all clients that will inject the emojis instead of having to do it each time the paginator is needed.